package com.fone.player.play.impl;

import com.fone.player.play.IPlayerState;
import com.fone.player.play.PlayerStateMachine;

/**
 * 小屏播放状态
 * 
 * @author kongxiaojun
 * @since 2014-4-25
 */
public class SmallScreenPlayState implements IPlayerState {
	private PlayerStateMachine machine;

	public SmallScreenPlayState(PlayerStateMachine machine) {
		super();
		this.machine = machine;
	}

	@Override
	public boolean play() {
		return false;
	}

	@Override
	public boolean pause() {
		machine.setCurrentState(machine.getSmallPause());
		return true;
	}

	@Override
	public boolean changOrientationToLand() {
		machine.setCurrentState(machine.getFullPlay());
		return true;
	}

	@Override
	public boolean changOrientationToPort() {
		return false;
	}

	@Override
	public boolean airone_play() {
		return false;
	}

	@Override
	public boolean airone_pause() {
		return false;
	}

	@Override
	public boolean airone_stop() {
		return false;
	}

	@Override
	public boolean stop() {
		machine.setCurrentState(machine.getInitial());
		return true;
	}

}
